package cn.xzhang.boot.mapper;

import cn.xzhang.boot.common.pojo.PageResult;
import cn.xzhang.boot.core.mapper.BaseMapperPlus;
import cn.xzhang.boot.model.dto.wallpaperDownloadRecord.WallpaperDownloadRecordPageReqDTO;
import cn.xzhang.boot.model.entity.WallpaperDownloadRecord;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;

/**
 * @author XiaoZhangCode
 * @description 针对表【wallpaperDownloadRecord(壁纸下载记录表)】的数据库操作Mapper
 * @author <a href="https://github.com/XiaoZhangCode">XiaoZhangCode</a>
 */
public interface WallpaperDownloadRecordMapper extends BaseMapperPlus<WallpaperDownloadRecord> {

    default PageResult<WallpaperDownloadRecord> selectPage(WallpaperDownloadRecordPageReqDTO wallpaperDownloadRecordPageReqDTO) {
        return selectPage(wallpaperDownloadRecordPageReqDTO, new LambdaQueryWrapper<WallpaperDownloadRecord>()
                .orderByDesc(WallpaperDownloadRecord::getId)
        );
    }

}




